﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Abs.Core.Models.Blog
{
    public class Comment
    {
        public virtual int CommentId { get; set; }

        public virtual string UserEmail { get; set; }
        public virtual User.User User { get; set; }

        [Required, DataType(DataType.MultilineText)]
        public virtual string ContentMessage { get; set; }

        public virtual DateTime Date { get; set; }

        [ForeignKey("Post")]
        public virtual int PostId { get; set; }
        public virtual Post Post { get; set; }
    }
}